package com.itheima.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * DTO：用于接收前端传递过来的参数
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class QueryClazzDto {

    private String name;
    private Integer gender;//性别 , 1 男 , 2 女
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate begin;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate end;
    private Integer page;
    private Integer pageSize;

}
